package com.mashibing.service;

import com.mashibing.internalcommon.dto.ResponseResult;
import com.mashibing.internalcommon.request.OrderRequest;

public interface ApiDriverOrderService {
    /**
     * 去接乘客
     * @param orderRequest
     * @return
     */
    ResponseResult toPickUpPassenger(OrderRequest orderRequest);

    /**
     * 去接乘客
     * @param orderRequest
     * @return
     */

    ResponseResult arrivedDeparture(OrderRequest orderRequest);

    /**
     * 司机接到乘客
     * @param orderRequest
     * @return
     */
    ResponseResult pickUpPassenger(OrderRequest orderRequest);

    /**
     * 乘客到达目的地，行程终止
     * @param orderRequest
     * @return
     */
    ResponseResult passengerGetOff(OrderRequest orderRequest);

    /**
     * 司机订单取消
     * @param orderId
     * @param identity
     * @return
     */
    ResponseResult cancel(Long orderId, String identity);

    /**
     * 司机抢单
     * @param driverPhone
     * @param orderId
     * @param receiveOrderCarLongitude
     * @param receiveOrderCarLatitude
     * @return
     */
    ResponseResult grab(String driverPhone, Long orderId, String receiveOrderCarLongitude, String receiveOrderCarLatitude);
}
